#include <iostream>
#include <sys/types.h>
#include <signal.h>
#include <unistd.h>

int main(int argc, char* argv[])
{
    // mykill -sig pid
    if (argc != 3)
    {
        std::cerr << "usage: " << argv[0] << " sig pid" << std::endl;
        return 1;
    }

    pid_t pid = std::stoi(argv[2]);
    int sig = std::stoi(argv[1]);
    kill(pid, sig);
    return 0;
}